﻿<local:ChoBaseWindowEx x:Class="ChoWorkflowDashboard.AddOrEditTaskGroupWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:ChoWorkflowDashboard"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        Title="Task Group Editor" Height="175" Width="489" ShowInTaskbar="False" ResizeMode="NoResize" 
        Background="AliceBlue" Topmost="False"
        BorderBrush="{DynamicResource AccentColorBrush}"
        BorderThickness="1"
        ShowMaxRestoreButton="false" ShowMinButton="false"
                       >
    <DockPanel LastChildFill="True" FocusManager.FocusedElement="{Binding ElementName=txtTaskGroupName}">
        <Grid DockPanel.Dock="Top" Margin="5,10,5,5">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="110"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Label Grid.Column="0" Grid.Row="0" Content="Task Group Name:" Name="label1" HorizontalAlignment="Right" VerticalContentAlignment="Center" />
            <xctk:WatermarkTextBox Grid.Column="1" Height="23" Name="txtTaskGroupName" TabIndex="1" CharacterCasing="Upper" 
                        Text="{Binding Path=Name}" Margin="5,2,5,2" local:Masking.Mask="^[A-Za-z0-9_]*$" ToolTip="Accepts only [A-Za-z0-9] characters" />
            <Label Content="Comments:" Name="label2" Grid.Column="0" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Right" />
            <TextBox Grid.Column="1" Grid.Row="1" Height="64" Name="txtTaskGroupDesc" TabIndex="2"
                        Text="{Binding Path=Description, UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" AcceptsReturn="True" AcceptsTab="True" Margin="5,2,5,1" />
        </Grid>
        <Grid DockPanel.Dock="Bottom" Margin="5,0,8,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="80" />
            </Grid.ColumnDefinitions>

            <Button Grid.Column="1" Content="OK" Height="23" IsDefault="True" Name="btnOK" TabIndex="50" Tag="4" Width="75" Click="btnOK_Click" />
            <Button Grid.Column="2" Content="Cancel" Height="23" IsCancel="True" Name="btnCancel" TabIndex="51" Tag="5" Width="75" Click="btnCancel_Click" />
        </Grid>
    </DockPanel>

</local:ChoBaseWindowEx>
